/*
package com.longcai.controller;


import com.longcai.bean.ApiResult;
import com.longcai.feign.api.RemoteLogApi;
import com.longcai.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;



@RestController
public class UserController {

    @Autowired
    private SysUserService sysUserService;

    @Autowired
    private RemoteLogApi remoteLogApi;

    // ${env.name} + world
    //相当于引用了yml文件中的  env.name配置
    //如果没有获取到env.name 的值，就会默认读取 :后面的值，相当于一个默认值了
    @Value("${env.name:config server not found}")
    private String bar;

    @GetMapping("/hi")
    public String home(@RequestParam String name) {

        return "Hello " + bar + "!";
    }

    @GetMapping(value = "user")
    public ApiResult<SysUsers> querySysLog() {

        return this.sysUserService.querySysUsers();
    }

    @GetMapping(value = "/log")
    public ApiResult findLog() {
        return this.remoteLogApi.querySysLog();
    }

    @GetMapping("/info")
    public Principal user(Principal principal) {
        return principal;
    }
}
*/
